package com.fowo.api.model.bd;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.NumberFormat;
import javax.validation.constraints.*;
import lombok.Data;

/** 汇率 导入导出辅助模型 */
@Data
public class BdRateExcelPo {

  @Size(max = 60, message = "原币长度不能超过20")
  @ExcelProperty(value = "原币")
  private String name;

  @Size(max = 50, message = "原币编码长度不能超过20")
  @ExcelProperty(value = "原币编码")
  private String code;

  @NotNull(message = "汇率不能为空")
  @Size(max = 50, message = "汇率长度不能超过20")
  @NumberFormat("0.0000")
  @ExcelProperty(value = "*汇率")
  private java.math.BigDecimal rateNum;
}
